import Vue from 'vue'
import Router from 'vue-router'
// import home from '../pages/home'
import home from '../page/home'
import about from '../pages/about'
// import playlist from '../pages/playlist'
import playlist from '../page/playlist'
// import playlistDetail from '../pages/playlistDetail'
import playlistDetail from '../page/playlistDetail'
import artist from '../page/artist'
// import artistDetail from '../pages/artistDetail'
import artistDetail from '../page/artistDetail'
import album from "../page/album"

import userHome from '../page/userHome'
import myMusic from "../page/myMusic"
import myHome from "../page/myHome"
import albumDetail from "../page/albumDetail"
import songDetail from "../page/songDetail"
import editPlaylist from "../page/editPlaylist"
import userSetting from "../page/userSetting"
import searchResult from "../page/searchResult"
import myMessages from "../page/myMessages"
import myAlbum from "../page/myAlbum"
import artistApply from "../page/artistApply"
import test from '../pages/test'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      // component: home
      component: (resolve) => require(['../page/home'], resolve)
    },
    {
      path: '/about',
      name: 'about',
      // component: about
      component: (resolve) => require(['../pages/about'], resolve)
    },
    {
      path: '/playlist',
      name: 'playlist',
      // component: playlist
      // component: (resolve) => require(['../pages/playlist'], resolve)
      component: (resolve) => require(['../page/playlist'], resolve)
    },
    {
      path: '/playlistDetail',
      name: 'playlistDetail',
      // component: playlistDetail
      // component: (resolve) => require(['../pages/playlistDetail'], resolve)
      component: (resolve) => require(['../page/playlistDetail'], resolve)
    },
    {
      path: '/artist',
      name: 'artist',
      // component: artist
      component: (resolve) => require(['../page/artist'], resolve)
    },
    {
      path: '/artistDetail',
      name: 'artistDetail',
      // component: artistDetail
      component: (resolve) => require(['../page/artistDetail'], resolve)
    },
    {
      path: '/userHome',
      name: 'userHome',
      component: (resolve) => require(['../page/userHome'], resolve)
    },
    {
      path: '/test',
      name: 'test',
      component: (resolve) => require(['../pages/test'], resolve)
    },
    {
      path: '/myMusic',
      name: 'myMusic',
      component: (resolve) => require(['../page/myMusic'], resolve)
    },
    {
      path: '/myHome',
      name: 'myHome',
      component: (resolve) => require(['../page/myHome'], resolve)
    },
    {
      path: '/albumDetail',
      name: 'albumDetail',
      component: (resolve) => require(['../page/albumDetail'], resolve)
    },
    {
      path: '/songDetail',
      name: 'songDetail',
      component: (resolve) => require(['../page/songDetail'], resolve)
    },
    {
      path: '/editPlaylist',
      name: 'editPlaylist',
      component: (resolve) => require(['../page/editPlaylist'], resolve)
    },
    {
      path: '/userSetting',
      name: 'userSetting',
      component: (resolve) => require(['../page/userSetting'], resolve)
    },
    {
      path: '/searchResult',
      name: 'searchResult',
      component: (resolve) => require(['../page/searchResult'], resolve)
    },
    {
      path: '/myMessages',
      name: 'myMessages',
      component: (resolve) => require(['../page/myMessages'], resolve)
    },
    {
      path: '/myAlbum',
      name: 'myAlbum',
      component: (resolve) => require(['../page/myAlbum'], resolve)
    },
    {
      path: '/album',
      name: 'album',
      component: (resolve) => require(['../page/album'], resolve)
    },
    {
      path: '/artistApply',
      name: 'artistApply',
      component: (resolve) => require(['../page/artistApply'], resolve)
    }

    //artistApply
  ]
})
